package com.zlx.mall.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.Instant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品类目信息
 * </p>
 *
 * @author xiatian
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("`sc_category`")
public class ScCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    /** PK,AI */
    @TableId(value = "`id`", type = IdType.AUTO)
    private Long id;
    /** 类目名称 */
    @TableField("`name`")
    private String name;
    /** 父类目ID=0时，代表的是一级的类目 */
    @TableField("`parent_id`")
    private Long parentId;
    /** 类目图片 */
    @TableField("`category_img`")
    private String categoryImg;
    /** 状态 0：停用 1：启用 */
    @TableField("`status`")
    private Integer status;
    /** 排序，升序，从小到大 */
    @TableField("`sort`")
    private Integer sort;
    /** 备注 */
    @TableField("`remark`")
    private String remark;
    /** 删除状态 {0-exist !0-deleted} */
    @TableField("`is_delete`")
    private Long isDelete;
    /** 创建时间 */
    @TableField("`create_timestamp`")
    private Instant createTimestamp;
    /** 修改时间 */
    @TableField("`modify_timestamp`")
    private Instant modifyTimestamp;
    /** 创建人id */
    @TableField("`create_operator_id`")
    private Long createOperatorId;
    /** 修改人id */
    @TableField("`modify_operator_id`")
    private Long modifyOperatorId;

    /** PK,AI */
    public static final String ID = "id";
    /** 类目名称 */
    public static final String NAME = "name";
    /** 父类目ID=0时，代表的是一级的类目 */
    public static final String PARENT_ID = "parent_id";
    /** 类目图片 */
    public static final String CATEGORY_IMG = "category_img";
    /** 状态 0：停用 1：启用 */
    public static final String STATUS = "status";
    /** 排序，升序，从小到大 */
    public static final String SORT = "sort";
    /** 备注 */
    public static final String REMARK = "remark";
    /** 删除状态 {0-exist !0-deleted} */
    public static final String IS_DELETE = "is_delete";
    /** 创建时间 */
    public static final String CREATE_TIMESTAMP = "create_timestamp";
    /** 修改时间 */
    public static final String MODIFY_TIMESTAMP = "modify_timestamp";
    /** 创建人id */
    public static final String CREATE_OPERATOR_ID = "create_operator_id";
    /** 修改人id */
    public static final String MODIFY_OPERATOR_ID = "modify_operator_id";
}
